From: Dietmar Hahn Date: Wed, 29 Feb 2012 13:51:12 +0000 (+0000) Subject: vpmu: cleanup structures X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=f3ff1b2db447cf9fbe5005faf0f20ab911661863;p=xen.git vpmu: cleanup structures - struct msr_load_store_entry is unused - struct pmumsr is only used in the vmx part Signed-off-by: Dietmar Hahn Committed-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/vmx/vpmu_core2.c b/xen/arch/x86/hvm/vmx/vpmu_core2.c index ba1bd9da24..e0453e4af1 100644 --- a/xen/arch/x86/hvm/vmx/vpmu_core2.c +++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c @@ -112,6 +112,11 @@ u32 core2_ctrls_msr[] = { MSR_IA32_PEBS_ENABLE, MSR_IA32_DS_AREA}; +struct pmumsr { + unsigned int num; + u32 *msr; +}; + struct pmumsr core2_counters = { 3, core2_counters_msr diff --git a/xen/include/asm-x86/hvm/vpmu.h b/xen/include/asm-x86/hvm/vpmu.h index c08bc3b4e6..d6ed5f8e4d 100644 --- a/xen/include/asm-x86/hvm/vpmu.h +++ b/xen/include/asm-x86/hvm/vpmu.h @@ -34,16 +34,6 @@ #define MSR_TYPE_ARCH_COUNTER 3 #define MSR_TYPE_ARCH_CTRL 4 -struct pmumsr { - unsigned int num; - u32 *msr; -}; - -struct msr_load_store_entry { - u32 msr_index; - u32 msr_reserved; - u64 msr_data; -}; /* Arch specific operations shared by all vpmus */ struct arch_vpmu_ops {